package com.zp.common.base.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zp.common.base.entity.UserRole;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface UserRoleRepository extends BaseMapper<UserRole> {
    @Select("select * from t_user_role where user_id=#{userId} and status=#{status}")
    List<UserRole> findByUserIdAndStatus(@Param("userId") String userId, @Param("status") Integer status);
}
